package com.example.tab02;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.example.tab02.R;

public class DetailsActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.recycler_details);
        View view = getWindow().getDecorView();
        Intent intent = getIntent();
        String id = intent.getStringExtra("id");
        String msg_text="这是"+id+"的详情页面";
        TextView msg=view.findViewById(R.id.details_msg);
        msg.setText(msg_text);
    }
}
